package com.demo.core.dao;

import java.util.List;
import java.util.Map;

import com.demo.core.dao.base.BaseCoreDao;
import com.demo.core.dao.base.support.SearchDaoSupport;
import com.demo.core.model.Feedback;

/**
 * 回复/反馈表数据库访问Dao
 * 
 * @author ryuu.kk
 *
 */
public interface FeedbackDao extends BaseCoreDao<Feedback, Long>, SearchDaoSupport<Feedback> {

	/**
	 * 查询树形结构的反馈数据
	 * @param params 参数Map
	 * @return List<Feedback> 反馈模型列表
	 */
	List<Feedback> tree(Map<String, Object> params);

	/**
	 * 更新反馈审核阶段
	 * 更新字段CHECK_STEP & IS_CHECKED;
	 * @param feedback Feedback
	 * @param params Map<String, Object> params
	 * @return int
	 */
	int updateStep(Feedback feedback, Map<String, Object> params);
}
